package utils.global.security;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@ToString
@ConfigurationProperties(prefix = "utils.security")
@Validated
public class SecurtiyProperties implements Serializable {
    @Size(min = 16, max = 16, message = "字段 salt 长度为 16")
    private String salt;
    private boolean enabled;
}
